<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
<jsp:include page="../../WEB-INF/incl/htmlHeader.jsp" />
<title>Movie Maintenance | Cult Cinema Inc</title>
</head>
<body class="admin">
<script type="text/javascript">
	$(document).ready(function() {
		$('#startDate').calendricalDate();
	});
</script>
<jsp:include page="../../WEB-INF/incl/adminHeader.jsp" />
<div id="pageheader">
	<div class="container">
		<h1>Administration &gt; Movie Maintenance &gt; Edit Movie</h1>
	</div>
</div>
<div id="main" class="container">
	<div class="wrapper">
		<jsp:include page="../../WEB-INF/incl/messages.jsp" />
		<form method="post" action="/cinema/admin/movie/edit.do" class="cssform">
		<input type="hidden"   name="id" value="${requestScope.movie.id}" />
		<p>
			<label class="f_label" for="imageUrl"><fmt:message key="movie.imageUrl" bundle="${uitext}" /></label> 
			<input type="text"   name="imageUrl" id="imageUrl" value="${requestScope.movie.imageUrl}" />
		</p>
		<p>
			<label class="f_label" for="name"><fmt:message key="movie.name" bundle="${uitext}" /></label> 
			<input type="text"   name="name" id="name" value="${requestScope.movie.name}" />
		</p>
		<p><label class="f_label" for="description"><fmt:message key="movie.description" bundle="${uitext}" /></label> <input type="text"  
			name="description" id="description" value="${requestScope.movie.description}"/></p>
		<p><label class="f_label" for="director"><fmt:message key="movie.director" bundle="${uitext}" /></label> <input type="text"  
			name="director" id="director" value="${requestScope.movie.director}"/></p>
			
		<p><label class="f_label" for="cast"><fmt:message key="movie.cast" bundle="${uitext}" /></label> <input type="text"  
			name="cast" id="cast" value="${requestScope.movie.cast} "/></p>
		<p>
			<label class="f_label" for="duration"><fmt:message key="movie.duration" bundle="${uitext}" /></label> 
			<input type="text"   name="duration" id="duration" value="${requestScope.movie.duration}"/>
		</p>
		<p>
			<label class="f_label" for="category"><fmt:message key="movie.category" bundle="${uitext}" /></label> 
			I:<input type="radio" name="category" id="category" value="I" ${requestScope.movie.category eq 'I' ? 'checked="checked"' : ''} />
			II:<input type="radio" name="category" id="category" value="II" ${requestScope.movie.category eq 'II' ? 'checked="checked"' : ''} />
			IIB:<input type="radio" name="category" id="category" value="IIB" ${requestScope.movie.category eq 'IIB' ? 'checked="checked"' : ''} />
			III:<input type="radio" name="category" id="category" value="III" ${requestScope.movie.category eq 'III' ? 'checked="checked"' : ''} />
		</p>
		<p><label class="f_label" for="language"><fmt:message key="movie.language" bundle="${uitext}" /></label> <input type="text"  
			name="language" id="language" value="${requestScope.movie.language}"/></p>
		<p>
			<label class="f_label" for="startDate"><fmt:message key="movie.startDate" bundle="${uitext}" /></label>
			<fmt:formatDate var="fmtStartDate" value="${requestScope.movie.startDate}" pattern="dd/MM/yyyy" />
			<input type="text" name="startDate" id="startDate" value="${fmtStartDate}"/>
		</p>
		<p><label class="f_label" for="trailerUrl"><fmt:message key="movie.trailerUrl" bundle="${uitext}" /></label> <input type="text"  
			name="trailerUrl" id="trailerUrl" value="${requestScope.movie.trailerUrl}"/></p>
			
		<p class="acts">
			<input type="submit" name="submit" id="submit" value="<fmt:message key="form.btn.save" bundle="${uitext}" />" class="text blue_btn">
			<a href="/cinema/admin/movie/list.do"><fmt:message key="form.btn.cancel" bundle="${uitext}" /></a>
		</p>
		</form>
	</div>
</div>
<jsp:include page="../../WEB-INF/incl/footer.jsp" />
</body>
</html>